def fei(num):
    if num == 1:
        return 1
    if num ==2:
        return 2
    return fei(num-1)+fei(num-2)

# for i in range(1,8):
# #     print(fei(i))

import time

def test(func):
    def inner(*args):
        start= time.time()

        func(*args)
        end= time.time()
        worktime = end-start
        sec= time.localtime(worktime).tm_sec
        print('运行了%s s '%sec)
    return inner
@test
def testtime():
    time.sleep(2)

testtime()